
<div class="grid_16 bread-crumb"> <a href="" class="home" title="Home"> </a> <span class="first">Schedule A Phone Call</span> </div>
<h2 class="grid_16">Schedule A Phone Call</h2>
  
<div class="inner-left">
   <?php if($action == 'byprod'):?>
        <div class="gap"></div>
        <div class="large-equal">
            <img src="<?php echo App::Config()->baseUrl("/uploads/filemanager/{$product['image']}");?>" class="product-detail" width="350" />
        </div>
        <div class="large-equal appstorecontent">
            <h2><?php echo($product['title']); ?></h2>
            <div class="gap"></div>
            <p>
                <small><?php echo $this->__('Availablity: In Stock');?></small><br />
                <strong class="hilight-color" ><?php echo( App::Helper('Config')->siteInfo('currency') . $product['price']);?></strong>
            </p>
            <div class="divider"></div>
            <p ><strong><?php echo $this->__('Description');?></strong></p>
            <?php echo($product['shortdesc']); ?>
             <div class="gap"></div>
            <p><strong><?php echo $this->__('Features');?></strong> </p>

            <?php echo($product['desc']); ?>
            <div class="divider"></div><br class="clearboth" />
            <p class="add2singleproduct">
                <input type="hidden" size="2" value="<?php echo $product['id']; ?>" class="productid" />
                <?php App::Hook('UI')->Render('appstore_checkout_button_left',$product); ?>
                <input type="text" size="2" value="<?php echo App::Component('appStore')->Helper('Data')->getCartInfoByProductId($product['id'])?>" class="add2cart-input" />
                <input type="submit" value="Add 2 Cart" class="add2cart-button appstore-button" />
                <input type="button" value="<< Back" class="appstore-button" onclick="javascript:history.go(-1)" />
                <input type="button" value="Continue checkout >>" class="checkout-button appstore-button <?php echo (App::Component('appStore')->Helper('Data')->isToCheckout()) ? "show" : "hide";?>" />
                <?php App::Hook('UI')->Render('appstore_checkout_button_right',$product); ?>
            </p>
        </div>
	<?php else:?>
		
        <?php foreach($products['data'] as $key => $product):?>
			  <div class="grid_4 list-item">
				<div class="wrapper clearfix">
					<h4 class="title">
						<a href="<?php echo App::Config()->baseUrl("/store-by-product/{$product['id']}/" . App::Helper('Utility')->text2Normalize($product['title'])) ?>">
							<?php echo $product['title'];?>
						</a></h4>
					<p class="desc"><?php echo(substr($product['shortdesc'],0,30)); ?></p>
					<div class="price"><?php echo( App::Helper('Config')->siteInfo('currency') . $product['price']);?></div>
					<div class="add2cartwrapper">
						<input type="hidden" size="2" value="<?php echo $product['id']; ?>" class="productid" />
						<?php App::Hook('UI')->Render('appstore_checkout_button_left',$product); ?>
						<input type="hidden" size="2" value="<?php echo "1";//App::Component('appStore')->Helper('Data')->getCartInfoByProductId($product['id'])?>" class="add2cart-input" />
						<a href="javascript:void(0)" class="add2cart-button button medium red">Add to Basket</a>
						<!-- input type="submit" value="Add 2 Cart" class="add2cart-button appstore-button" /-->
						<?php App::Hook('UI')->Render('appstore_checkout_button_right',$product); ?>
					</div>
				
					
				</div>
			  </div>	
<!--			  
            <?php echo ($key%3 == 0)? App::Helper('Html')->getTag('li',Array('class'=>'pborderb')) : App::Helper('Html')->getTag('li',Array('class'=>'pborderlb'));?>
                <a href="<?php echo App::Config()->baseUrl("/store-by-product/{$product['id']}/" . App::Helper('Utility')->text2Normalize($product['title'])) ?>">
                    <?php echo App::Helper('Html')->imgTag($product['imagethumb'],array('mode'=>'imagemanager'),array('class'=>'box','height'=>'100'));?></a><br />
                <strong>Price : <?php echo( App::Helper('Config')->siteInfo('currency') . $product['price']);?></strong>
                <h3>
                    <a href="<?php echo App::Config()->baseUrl("/store-by-product/{$product['id']}/" . App::Helper('Utility')->text2Normalize($product['title'])) ?>">
                        <?php echo($product['title']);?>
                    </a>
                </h3>
                <div class="add2cartwrapper">
                    <input type="hidden" size="2" value="<?php echo $product['id']; ?>" class="productid" />
                    <?php App::Hook('UI')->Render('appstore_checkout_button_left',$product); ?>
                    <input type="text" size="2" value="<?php echo App::Component('appStore')->Helper('Data')->getCartInfoByProductId($product['id'])?>" class="add2cart-input" />
                    <input type="submit" value="Add 2 Cart" class="add2cart-button appstore-button" />
                    <?php App::Hook('UI')->Render('appstore_checkout_button_right',$product); ?>
                </div>
                <?php echo substr($product['shortdesc'],0,80);?>
            </li>-->
        <?php endforeach;?>
        <!--
        <br class="clearboth" />
        <?php if($products['paging']!=''):?>
            <p><?php echo $products['link']; ?></p>
        <?php endif;?>
        <br />
        <input type="button" value="Continue checkout >>" class="checkout-button appstore-button <?php echo (App::Component('appStore')->Helper('Data')->isToCheckout()) ? "show" : "hide";?>" />
     	-->
    <?php endif;?>
</div>
